//Nathan Popham
//4003-573-01: Procedural Shading
//Lab 5
//
//lightShader.vert
// Vert shader for phong-shaded spotlight surface.

varying vec3 P, L, N, eye, lightPos;

uniform vec3 spotlightAxis;
uniform vec3 from;
uniform vec3 to;
void main()
{	


	N = gl_NormalMatrix * gl_Normal;

	P = vec3(gl_ModelViewMatrix * gl_Vertex);

	L = vec3(gl_ModelViewMatrix * gl_LightSource[0].position) - P; 
	eye = -P;

    lightPos = vec3(gl_ModelViewMatrix * gl_LightSource[0].position);

   	gl_Position = ftransform();		
}
